export const usePagination = (params: any, cb: Function) => {

  const handleSizeChange = (val: number) => {
    params.value.pageSize = val
    cb()
  }
  const handleCurrentChange = (val: number) => {
    params.value.pageNo = val
    cb()
  }
  return {
    handleSizeChange,
    handleCurrentChange
  }
}